<template>
    <div class="app-main">
        <div class="carousel-container">

            <el-carousel height="550px">
                <el-carousel-item v-for="item in 4" :key="item">
                    <img src="@/imgs/show_011.png" style="width: 100%" />
                </el-carousel-item>
            </el-carousel>
        </div>
        <div class="siteIntroduce">
            <p class="mainIntroduce">
                Everything you need to build and manage AI agents
            </p>
            <p class="subIntroduce">
                AgentCraft provides a comprehensive suite of tools and features to empower you to create, deploy, and
                optimize AI agents for any use case.
            </p>
            <div class="card-container">
                <template v-for="item in cardList">
                    <el-card style="max-width: 260px;min-height: 200px;">
                        <template #header>
                            <div class="card-header">

                                <component :is="item.iconName" size="24" strokeWidth="4"></component>

                            </div>
                        </template>
                        <div style="font-size: 20px;font-weight: bolder;">{{ item.title }}</div>
                        {{ item.content }}
                    </el-card>
                </template>

            </div>
        </div>
    </div>

</template>

<script>
export default {
    name: 'Home',
    data() {
        return {
            cardList: [
                { 'iconName': 'i-puzzle', 'title': 'Modular Architecture', 'content': 'Build agents with reusable components for flexibility and scalability.' },
                { 'iconName': 'i-setting-two', 'title': 'Customizable Workflows', 'content': 'Tailor agent behavior to your specific needs with customizable workflows.' },
                { 'iconName': 'i-shield-add', 'title': 'Secure and Reliable', 'content': 'Ensure data privacy and agent reliability with our secure infrastructure.' },
                { 'iconName': 'i-every-user', 'title': 'Collaboration Tools', 'content': 'Work together with your team on agent development and management.' },
                { 'iconName': 'i-puzzle', 'title': 'Modular Architecture', 'content': 'Build agents with reusable components for flexibility and scalability.' },
                { 'iconName': 'i-setting-two', 'title': 'Customizable Workflows', 'content': 'Tailor agent behavior to your specific needs with customizable workflows.' },
                { 'iconName': 'i-shield-add', 'title': 'Secure and Reliable', 'content': 'Ensure data privacy and agent reliability with our secure infrastructure.' },                
                { 'iconName': 'i-blackboard', 'title': 'Real-time Monitoring', 'content': 'Track agent performance and identify areas for improvement in real-time.' },
            ]
        }
    },
}
</script>

<style scoped>


.carousel-container {}

.card-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.el-card{margin-bottom: 20px;}
.mainIntroduce {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    font-size: 36px;
    color: #141414;

    text-align: left;
    font-style: normal;
    text-transform: none;
}

.subIntroduce {
    width: 720px;
    height: 48px;
    font-family: Inter, Inter;
    font-weight: 400;
    font-size: 16px;
    color: #141414;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.el-carousel--horizontal {
    border-radius: 12px;
}

.demonstration {
    color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
    color: #475669;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
    text-align: center;
}

.el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
    background-color: #d3dce6;
}
</style>